package com.edu.study.base.wordLearn.mapper;

import com.edu.study.base.wordLearn.domain.EduWordLearn;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 生词库，需要学习的词汇 正在学习的词汇 1、在“目标生词”库中顺序默认100个生词Mapper接口
 * 
 * @author admin
 * @date 2021-08-04
 */
public interface EduWordLearnMapper 
{
    /**
     * 查询生词库，需要学习的词汇 
     */
    public EduWordLearn selectEduWordLearnById(String id);

    /**
     * 查询生词库，需要学习的词汇 
     */
    public List<EduWordLearn> selectEduWordLearnList(EduWordLearn eduWordLearn);

    /**
     * 新增生词库，需要学习的词汇 
     * @return 结果
     */
    public int insertEduWordLearn(EduWordLearn eduWordLearn);

    public int insertEduWordLearnList(List<EduWordLearn> eduWordLearnList);

    /**
     * 修改生词库，需要学习的词汇 
     * @return 结果
     */
    public int updateEduWordLearn(EduWordLearn eduWordLearn);

    /**
     * 批量修改单词状态为0
     * @param
     * @return
     */
    public int updateWordStatusByIds(EduWordLearn eduWordLearn);



    /**
     * 删除生词库，需要学习的词汇 
     * @return 结果
     */
    public int deleteEduWordLearnById(String id);

    /**
     * 批量删除生词库，需要学习的词汇 
     */
    public int deleteEduWordLearnByIds(String[] ids);

	public List<EduWordLearn> getDayNum(@Param("memberId")String memberId,@Param("startTime")String startTime,@Param("endTime") String endTime);
}
